<%@ page import="com.dbb.Ctn" %>



<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'colorSizes', 'error')} ">
	<label for="colorSizes">
		<g:message code="ctn.colorSizes.label" default="Color Sizes" />
		
	</label>
	<g:select name="colorSizes" from="${com.dbb.ColorSize.list()}" multiple="multiple" optionKey="id" size="5" value="${ctnInstance?.colorSizes*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'ctnType', 'error')} required">
	<label for="ctnType">
		<g:message code="ctn.ctnType.label" default="Ctn Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="ctnType" from="${com.dbb.CtnType?.values()}" keys="${com.dbb.CtnType.values()*.name()}" required="" value="${ctnInstance?.ctnType?.name()}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'grossWeight', 'error')} required">
	<label for="grossWeight">
		<g:message code="ctn.grossWeight.label" default="Gross Weight" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="grossWeight" value="${fieldValue(bean: ctnInstance, field: 'grossWeight')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'high', 'error')} required">
	<label for="high">
		<g:message code="ctn.high.label" default="High" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="high" value="${fieldValue(bean: ctnInstance, field: 'high')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'length', 'error')} required">
	<label for="length">
		<g:message code="ctn.length.label" default="Length" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="length" value="${fieldValue(bean: ctnInstance, field: 'length')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'netWeight', 'error')} required">
	<label for="netWeight">
		<g:message code="ctn.netWeight.label" default="Net Weight" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="netWeight" value="${fieldValue(bean: ctnInstance, field: 'netWeight')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'product', 'error')} required">
	<label for="product">
		<g:message code="ctn.product.label" default="Product" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="product" name="product.id" from="${com.dbb.Product.list()}" optionKey="id" required="" value="${ctnInstance?.product?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'prs', 'error')} required">
	<label for="prs">
		<g:message code="ctn.prs.label" default="Prs" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="prs" type="number" value="${ctnInstance.prs}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: ctnInstance, field: 'width', 'error')} required">
	<label for="width">
		<g:message code="ctn.width.label" default="Width" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="width" value="${fieldValue(bean: ctnInstance, field: 'width')}" required=""/>
</div>

